package com.jxc.model.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/***********************************************************************
 * Module:  CustomerType.java
 * Author:  Tino
 * Purpose: Defines the Class CustomerType
 ***********************************************************************/

/**
 * 客户分类
 * 
 * @pdOid 9b4731b3-f3f8-4052-8f90-41568df1cc8f
 */
@Entity
@Table(name = "HYGL_CUSTOMER_TYPE")
public class CustomerType extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5680610465222175882L;
	/**
	 * 分类名称
	 * 
	 * @pdOid f07c6707-941f-456d-b8d4-81e618a59ae6
	 */
	private String name;
	/**
	 * 仓库
	 * 
	 */
	private Repertory repertory;
	/**
	 * 备注
	 * 
	 */
	private String remark;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "REPERTORY_ID")
	public Repertory getRepertory() {
		return repertory;
	}

	public void setRepertory(Repertory repertory) {
		this.repertory = repertory;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}